Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-116646, AC: Always use PyObject_AsFileDescriptor() in fildes #116806

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 14, 2024

The fildes converter of Argument Clinic now always call PyObject_AsFileDescriptor(), not only for the limited C API.

The _PyLong_FileDescriptor_Converter() converter stays as a fallback when PyObject_AsFileDescriptor() cannot be used.

The fildes converter of Argument Clinic now always call
PyObject_AsFileDescriptor(), not only for the limited C API.

The _PyLong_FileDescriptor_Converter() converter stays as a fallback
when PyObject_AsFileDescriptor() cannot be used.
@vstinner
Copy link
Member Author

@serhiy-storchaka: This is the change that you requested in my previous PR: #116769 (review)

I had to fix an issue before to prepare this change: #116793

@vstinner vstinner merged commit a76288a into python:main Mar 14, 2024
43 of 44 checks passed
@vstinner vstinner deleted the clinic_fd3 branch March 14, 2024 13:58
@vstinner
Copy link
Member Author

Merged, thanks for the review.

@erlend-aasland
Copy link
Contributor

LGTM; thanks

vstinner added a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
…python#116806)

The fildes converter of Argument Clinic now always call
PyObject_AsFileDescriptor(), not only for the limited C API.

The _PyLong_FileDescriptor_Converter() converter stays as a fallback
when PyObject_AsFileDescriptor() cannot be used.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…python#116806)

The fildes converter of Argument Clinic now always call
PyObject_AsFileDescriptor(), not only for the limited C API.

The _PyLong_FileDescriptor_Converter() converter stays as a fallback
when PyObject_AsFileDescriptor() cannot be used.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…python#116806)

The fildes converter of Argument Clinic now always call
PyObject_AsFileDescriptor(), not only for the limited C API.

The _PyLong_FileDescriptor_Converter() converter stays as a fallback
when PyObject_AsFileDescriptor() cannot be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants